//package com.zhuifeng.utils;
//
//import org.redisson.Redisson;
//import org.redisson.api.RedissonClient;
//import org.redisson.config.Config;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.stereotype.Component;
//
//@Configuration
//public class MyRedissonConfig {
//    @Bean(destroyMethod = "shutdown")
//    RedissonClient redisson() {
//        Config config = new Config();
//
//        config.useSingleServer()
//                .setAddress("47.98.136.123");
//
//        return Redisson.create(config);
//    }
//}
